package com.wgj.android.accesslibility.config;

/**
 *
 * 微信版本说明
 *1200  6.60
 *1180  6.5.23
 *1160  6.5.22
 *微信各个版本的资源Id适配
 */

public class WXIDManage {
    /** 不能再使用文字匹配的最小版本号 */
    public static final int USE_ID_MIN_VERSION = 700;// 6.3.8 对应code为680,6.3.9对应code为700
    public static final  String LIST_VIEW="android.widget.ListView";
    public  static String  getHongBaoId(int wechatVersion ){
        String buttonId = "com.tencent.mm:id/b43";
        switch (wechatVersion){
            case 1160:
                buttonId = "com.tencent.mm:id/bwn";
                break;
            case 700:
                buttonId = "com.tencent.mm:id/b2c";
                break;
            case 1180:
                buttonId="com.tencent.mm:id/bx4";
                break;
            case 1200:
                buttonId="com.tencent.mm:id/c22";
                break;
            case 1220:
                buttonId="com.tencent.mm:id/c2i";
                break;
            case 1240:
                buttonId="com.tencent.mm:id/c4j";
        }
        return buttonId;

    }

    public  static  String getHongBaoFriendId(int wechatVersion){
        String id="com.tencent.mm:id/brf";
        switch (wechatVersion){
            case 1160:
                id="com.tencent.mm:id/bsv";
              break;
            case 1120:
                id="com.tencent.mm:id/bo2";
              break;
            case 1180:
                id="com.tencent.mm:id/btc";
                break;
            case 1200:
                id="com.tencent.mm:id/byb";
                break;
            case 1220:
                id="com.tencent.mm:id/bys";
                break;
            case 1240:
                id="com.tencent.mm:id/c0s";
        }
        return  id;
    }


    public  static  String getHongBaoMoneyId(int wechatVersion){
        String id="com.tencent.mm:id/brj";
        switch (wechatVersion){
            case 1160:
                id="com.tencent.mm:id/bsz";
                break;
            case 1120:
                id="com.tencent.mm:id/bo6";
              break;
            case 1180:
                id="com.tencent.mm:id/btg";
                break;
            case 1200:
                id="com.tencent.mm:id/byf";
                break;
            case 1220:
                id="com.tencent.mm:id/byw";
                break;
            case 1240:
                id="com.tencent.mm:id/c0w";
        }
        return  id;
    }

    public  static String getContactItemId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/iu";
                break;
            case 1200:
                id="com.tencent.mm:id/j1";
                break;
            case 1220:
                id="com.tencent.mm:id/j1";
                break;
            case 1240:
                id="com.tencent.mm:id/j7";
        }
        return id;
    }

    /**
     * 获取微信顶部聊天窗口导航栏Id
     * @param version
     * @return
     */
    public  static String getWeiXinChatRoomTopBarViewId(int version){
        String id="com.tencent.mm:id/go";
        switch (version){
            case 1180:
                id=" com.tencent.mm:id/gk";
                break;
            case  1240:
                id="com.tencent.mm:id/gx";
        }
        return id;
    }


    /**
     * 获取微信语音输入Id
     * @param version
     * @return
     */
    public  static  String getWieXinVoiceId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/aa2";
                break;
            case 1200:
                id="com.tencent.mm:id/aa0";
                break;
            case 1220:
                id="com.tencent.mm:id/aad";
                break;
            case 1240:
                id="com.tencent.mm:id/aa_";
        }
        return id;
    }







    public  static  String getContactListViewId(int version){
        String id="com.tencent.mm:id/ih";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/ib";
                break;
            case 1240:
                id="com.tencent.mm:id/c5q";
        }
        return id;

    }

    /**
     * 获取聊天信息窗口好友头像
     * @param version
     * @return
     */
    public  static  String getContactUserAvater(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/cr6";
                break;
            case 1200:
                id="com.tencent.mm:id/cwn";
                break;
            case 1220:
                id="com.tencent.mm:id/cx4";
                break;
            case 1240:
                id="com.tencent.mm:id/d05";
        }
        return  id;
    }

    /**
     * 获取查看全部群成员页面的好友头像ID
     * @param version
     * @return
     */
    public  static  String getAllGroupContactAvater(int version){
        String id="";
        switch (version){
            case 1220:
                id="com.tencent.mm:id/ahx";
                break;
            case 1240:
                id="com.tencent.mm:id/d05";
        }
        return  id;
    }

    /**
     * 获取设置备注页面昵称文本框
     * @param version
     * @return
     */
    public  static String getNickNameTextId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/anx";
                break;
            case 1200:
                id="com.tencent.mm:id/aol";
                break;
            case 1220:
                id="com.tencent.mm:id/ap1";
                break;
            case 1240:
                id="com.tencent.mm:id/aoz";
        }
        return  id;
    }
    public  static String getNickNameInputId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/anw";
                break;
            case 1200:
                id="com.tencent.mm:id/aok";
                break;
            case 1220:
                id="com.tencent.mm:id/aoz";
                break;
            case 1240:
                id="com.tencent.mm:id/aoy";
        }
        return  id;
    }

    public  static String getSaveNickNameButId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/h1";
                break;
            case 1200:
                id="com.tencent.mm:id/h5";
                break;
            case 1240:
                id="com.tencent.mm:id/hd";
        }
        return  id;
    }

    /**
     * 返回群加好友消息验证输入框
     * @param version
     * @return
     */
    public  static  String getAddGroupMsgInputId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/crd";
                break;
            case 1200:
                id="com.tencent.mm:id/cwv";
                break;
            case 1220:
                id="com.tencent.mm:id/cxb";
                break;
            case 1240:
                id="com.tencent.mm:id/d0c";

        }
        return id;
    }
    /**
     * 返回群列表ID
     * @param version
     * @return
     */
    public  static  String getGroupItemId(int version){
        String id="";
        switch (version){
            case 1180:
                id="com.tencent.mm:id/a9k";
                break;

            case 1200:
                id="com.tencent.mm:id/a9h";
                break;
            case 1220:
                id="com.tencent.mm:id/a9y";
                break;
            case 1240:
                id="com.tencent.mm:id/a9u";
        }
        return  id;
    }


    /**
     * 获取附近好友的头像Id
     * @param wechatVersion
     * @return
     */
    public  static String getLocationFriendsAvaterId(int wechatVersion){
        String id="";
        switch (wechatVersion){
            case 1180:
                id="com.tencent.mm:id/awk";
                break;
            case 1200:
                id="com.tencent.mm:id/axr";
                break;
            case 1220:
                id="com.tencent.mm:id/ay7";
                break;
            case 1240:
                id="com.tencent.mm:id/aya";
        }
        return id;
    }
}

